package com.lanou;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * Created by admin on 19/1/18.
 */
public class JDBCUtil {

	public static Connection getConnections() throws Exception {
		// 加载驱动类
		Class.forName("com.mysql.jdbc.Driver");

		// 获取connection对象
		return DriverManager.getConnection("jdbc:mysql://192.168.0.147/test","root","123456");

	}
}
